from SimpleWrapper.Extension.SeleniumExtension.CategoryAbstraction.Selenium平台淘宝童装 import TaoBao_TongZhuang





tb = TaoBao_TongZhuang()

tb.log.info("任务开始!")

tb.browser.force_start_debug_browser()
tb.base.wait(1)
tb.LoadConfigFile().InitDriver()
tb.base.Goto_CurrentActivateUrl()

tb.OpenCreateProductPage()
tb.SelectCategoryMode()

tb.SelectFirstCategory()
tb.SelectSecondCategory()
tb.SelectThirdCategory()
tb.SelectfourthCategory()
tb.FillProductBrand()
tb.GotoParamSettingPage()

tb.FillProductTitle()
tb.FillProductParams()
tb.FillProductMaterial()

tb.FillProductMainImage()
tb.FillProductDetailImage()
tb.FillProductSku()
tb.FillProductPrice()
tb.FillProductInventory()
tb.FillProductShopLabel()
tb.FillProductLogistics()

tb.driver.quit()
tb.log.info("驱动关闭!")
tb.log.info("任务完成!")